package com.haha.qqchannelbot.entity.fortune;

import lombok.Getter;

@Getter
public enum AnimalEnum {

    MOUSE("鼠",
            "https://www.k366.com/sxys/today_sx_0.html",
            "https://static.k366.com/Public/hyhl/images/sx_0.png", "🐭"),
    COW("牛",
            "https://www.k366.com/sxys/today_sx_1.html",
            "https://static.k366.com/Public/hyhl/images/sx_1.png",
            "🐮"),
    TIGER("虎",
            "https://www.k366.com/sxys/today_sx_2.html",
            "https://static.k366.com/Public/hyhl/images/sx_2.png",
            "🐯"),
    RABBIT("兔",
            "https://www.k366.com/sxys/today_sx_3.html",
            "https://static.k366.com/Public/hyhl/images/sx_3.png",
            "🐰"),
    DRAGON("龙",
            "https://www.k366.com/sxys/today_sx_4.html",
            "https://static.k366.com/Public/hyhl/images/sx_4.png",
            "🐲"),
    SNAKE("蛇",
            "https://www.k366.com/sxys/today_sx_5.html",
            "https://static.k366.com/Public/hyhl/images/sx_5.png",
            "🐍"),
    HORSE("马",
            "https://www.k366.com/sxys/today_sx_6.html",
            "https://static.k366.com/Public/hyhl/images/sx_6.png",
            "🐴"),
    SHEEP("羊",
            "https://www.k366.com/sxys/today_sx_7.html",
            "https://static.k366.com/Public/hyhl/images/sx_7.png",
            "🐑"),
    MONKEY("猴",
            "https://www.k366.com/sxys/today_sx_8.html",
            "https://static.k366.com/Public/hyhl/images/sx_8.png",
            "🐵"),
    CHICKEN("鸡",
            "https://www.k366.com/sxys/today_sx_9.html",
            "https://static.k366.com/Public/hyhl/images/sx_9.png",
            "🐔"),
    DOG("狗",
            "https://www.k366.com/sxys/today_sx_10.html",
            "https://static.k366.com/Public/hyhl/images/sx_10.png",
            "🐶"),
    PIG("猪",
            "https://www.k366.com/sxys/today_sx_11.html",
            "https://static.k366.com/Public/hyhl/images/sx_11.png",
            "🐷")
    ;

    AnimalEnum(String name, String url, String avatarUrl, String emoji) {
        this.name = name;
        this.url = url;
        this.avatarUrl = avatarUrl;
        this.emoji = emoji;
    }

    /**
     * 名称
     */
    private String name;

    /**
     * 查询地址
     */
    private String url;

    /**
     * 头像地址
     */
    private String avatarUrl;

    /**
     * 表情
     */
    private String emoji;


    public static AnimalEnum getAnimalEnum(String name) {
        for (AnimalEnum animalEnum : AnimalEnum.values()) {
            if (animalEnum.getName().equals(name)) {
                return animalEnum;
            }
        }
        return null;
    }

}
